/*
 * 24/10/2011 - 06:40
 */
package org.nettyflux.mailbox;

/**
 * @author Victor Williams Stafusa da Silva
 */
public final class ReceiveAdaptor<T> implements ReceiveListener<T> {

    private final ReceiveAcceptor<T> acceptor;

    public ReceiveAdaptor(ReceiveAcceptor<T> acceptor) {
        this.acceptor = acceptor;
    }

    @Override
    public void receive(T message) {
        acceptor.accept(message);
    }
}
